package com.czmh.etc.common.core.mapper;



import org.springframework.data.repository.query.Param;

import java.util.List;
import java.util.Map;

/**
 * 基础Dao(还需在XML文件里，有对应的SQL语句)
 * 
 */
public interface BaseMapperDao<T> {
	
	int save(T t);

	int saveSelective(T t);

	int saveList(@Param("list") List<T> t);

	int update(T t);

	int delete(Object id);

	int deleteBatch(Object[] id);

	T queryObject(Object id);
	
	List<T> queryList(Map<String, Object> map);
	
	int queryTotal(Map<String, Object> map);

	int queryTotal();

}
